package cn.spike.rockcc.feignclient;

import cn.spike.rockcc.fallback.UserFallbackFactory;
import cn.spike.rockcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-user",fallbackFactory = UserFallbackFactory.class)
public interface UserFeignClient {

    @GetMapping("/user/loadByPhone/{phone}")
    JSONResult loadByPhone(@PathVariable("phone") String phone);
}
